#include"Point.h"
#include<iostream>

using namespace std;

Point::Point(int a, int b):x(a),y(b)
{
}

void Point::afficher()
{
	cout<<"("<<x<<","<<y<<")"<<endl;
}

Point Point::operator - (const Point& A)
{
	Point r (x-A.x, y-A.y);
return r;
}

Point Point::operator + (const Point& A)
{
	Point r (x+A.x, y+A.y);
return r;
}

Point Point::operator + (long n)
{
	Point r (x+n, y+n);
return r;
}

bool Point::operator == (const Point& A)
{
	if ((x==A.x)&&(y==A.y))
	{
	return true;
	}
	return false;
}

Point operator + (long n, const Point& A)
{
Point  R (n+A.x,n+A.y);
return R;
}



